// Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000, All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement.  The various license agreements may be found at
// the Magic Software web site.  This file is subject to the license
//
// RESTRICTED USE SOURCE CODE
// http://www.magic-software.com/License/restricted.pdf

//---------------------------------------------------------------------------
inline unsigned short MgcTerrainPage::GetSize () const
{
    return m_usSize;
}
//---------------------------------------------------------------------------
inline const unsigned short* MgcTerrainPage::GetHeights () const
{
    return m_ausHeight;
}
//---------------------------------------------------------------------------
inline const MgcVector2& MgcTerrainPage::GetOrigin () const
{
    return m_kOrigin;
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetMinElevation () const
{
    return m_fMinElevation;
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetMaxElevation () const
{
    return m_fMaxElevation;
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetSpacing () const
{
    return m_fSpacing;
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetPixelTolerance () const
{
    return m_fPixelTolerance;
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetX (unsigned char ucX) const
{
    return m_kOrigin.x + m_fSpacing*MgcReal(ucX);
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetY (unsigned char ucY) const
{
    return m_kOrigin.y + m_fSpacing*MgcReal(ucY);
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetHeight (unsigned short usIndex) const
{
    return m_fMinElevation + m_fMultiplier*MgcReal(m_ausHeight[usIndex]);
}
//---------------------------------------------------------------------------
inline MgcReal MgcTerrainPage::GetTexture (unsigned char ucIndex) const
{
    return m_fTextureSpacing*MgcReal(ucIndex);
}
//---------------------------------------------------------------------------
